package com.reform.pojo.common;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author mortale
 * @since 2021-08-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Record对象", description="")
public class Record implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "记录编号")
    @TableId(value = "record_id", type = IdType.AUTO)
    private Integer recordId;

    @ApiModelProperty(value = "项目编号", required = true)
    @TableField("pro_id")
    private String proId;

    @ApiModelProperty(value = "教师工号", required = true)
    private String gh;

    @ApiModelProperty(value = "教师姓名", required = true)
    private String name;

    @ApiModelProperty(value = "审核暂存状态(-1 申报 0  暂存  1   提交    2  学院通过  3 专家审核    4  学校通过   5   驳回  6  学院不通过   7 学校不通过  8 院级阶段检查通过 9 院级阶段检查不通过  10 校级阶段检查通过 11 校级阶段检查不通过 12 学院结项检查通过 13 学院结项不通过 14 专家结项通过 15学校结项通过 16 学校结项不通过 )", required = true)
    private Integer state;

    @ApiModelProperty(value = "日志信息")
    private String message;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "操作时间(yyyy-mm-dd hh:mm:ss)", required = true)
    private LocalDateTime time;


}
